package com.vallis.lotteryonline.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author vallis
 * @since 2020-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    /**
     * 会员id
     */
    @TableId(type = IdType.UUID)
    private String id;

    /**
     * 会员昵称
     */
    private String userName;

    /**
     * 会员手机号
     */
    private String userPhone;

    /**
     * 会员密码
     */
    private String userPassword;

    /**
     * 会员注册时间
     */
    private Date userRegisterTime;

    /**
     * 会员支付总金额
     */
    private Integer userPayAmont;

    /**
     * 会员最近一次登录时间
     */
    private Date userLastLoginTime;
    /**
     * 会员最近一次支付的订单号
     */
    private String outTradeNo;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
